﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAO;

namespace BUS
{
    public class LoaiDocGiaBUS
    {
        private LoaiDocGiaDAO _Loaidocgia;
        public LoaiDocGiaBUS()
        {
            _Loaidocgia = new LoaiDocGiaDAO();
        }
        public List<string> GetListLoaiDocGia()
        {
            List<string> lResult = _Loaidocgia.GetListLoaiDocGia();
            return lResult;
        }
        public bool InsertLoaiDocGia(string TenLoaiDocGia)
        {
            return _Loaidocgia.InsertLoaiDocGia(TenLoaiDocGia);
        }
        public bool UpdateLoaiDocGia(string TenLoaiDocGia, string TenLoaiDocGiaMoi)
        {
            return _Loaidocgia.UpdateLoaiDocGia(TenLoaiDocGia, TenLoaiDocGiaMoi);
        }
        public bool DeleteLoaiDocGia(string TenLoaiDocGia)
        {
            return _Loaidocgia.DeleteLoaiDocGia(TenLoaiDocGia);
        }
        public string GetNameLoaiDocGiaByKey(int MaLoaiDG)
        {
            return _Loaidocgia.GetTenLoaiDocGiaByKey(MaLoaiDG);
        }
    }
}
